(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/shop/index" ], {
    1711: function(e, t, a) {
        a.d(t, "b", function() {
            return o;
        }), a.d(t, "c", function() {
            return i;
        }), a.d(t, "a", function() {
            return n;
        });
        var n = {
            sjTabBar: function() {
                return a.e("components/sj-tab-bar/sj-tab-bar").then(a.bind(null, "1ba9"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    "25d5": function(e, t, a) {
        a.r(t);
        var n, o = a("1711"), i = a("8805");
        for (n in i) "default" !== n && function(e) {
            a.d(t, e, function() {
                return i[e];
            });
        }(n);
        a("7c30");
        var r = a("f0c5"), o = Object(r.a)(i.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    "2e8e": function(e, l, c) {
        (function(r) {
            Object.defineProperty(l, "__esModule", {
                value: !0
            }), l.default = void 0;
            var e, n = (e = c("a34a")) && e.__esModule ? e : {
                default: e
            };
            function t(e, t, a) {
                return t in e ? Object.defineProperty(e, t, {
                    value: a,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = a, e;
            }
            function s(e, t, a, n, o, i, r) {
                try {
                    var d = e[i](r), s = d.value;
                } catch (e) {
                    return a(e), 0;
                }
                d.done ? t(s) : Promise.resolve(s).then(n, o);
            }
            function o(d) {
                return function() {
                    var e = this, r = arguments;
                    return new Promise(function(t, a) {
                        var n = d.apply(e, r);
                        function o(e) {
                            s(n, t, a, o, i, "next", e);
                        }
                        function i(e) {
                            s(n, t, a, o, i, "throw", e);
                        }
                        o(void 0);
                    });
                };
            }
            var d = getApp(), i = null, a = (t(a = {
                data: function() {
                    return {
                        module_name: d.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: r.getStorageSync("userinfo"),
                        setting: r.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        swiperItems: [],
                        youlikes: [],
                        contact_title: "",
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        showAlert: !1,
                        appid_type: 0,
                        qudao_tkl: "",
                        is_qudao_tkl: 0,
                        showAlert_taobaoauth: !1,
                        elm_url: [],
                        meituan_url: [],
                        taskClose: !1,
                        unLogin: !1,
                        title: "",
                        token: "",
                        navHei: "",
                        selfInfor: "",
                        redInfor: "",
                        imgUrl: "",
                        taskLqList: [],
                        tixian: 1,
                        hongbao_image: "",
                        navList: [],
                        config: [],
                        koiplazaList: [],
                        koiplazaListOld: [],
                        boutiqueList: [],
                        firstAd: [],
                        picture: "",
                        wxVideoZ: "",
                        selfhelpList: [],
                        lvList: [],
                        animationData: {},
                        isMoney: !1,
                        isGreAni: !0,
                        isNewRed: !0,
                        isGetBtn: !1,
                        newPeopleMoney: "",
                        onlyIndex: "",
                        drawals: "",
                        Control: "",
                        isauthorize: !1,
                        status: 0,
                        res: "",
                        RedCoupon: "",
                        selected: 0,
                        iv: "",
                        encryptedData: "",
                        hasUserInfo: "",
                        recording: "",
                        loadingType: 0,
                        page: 1,
                        tasknum: 0,
                        pageKey: "",
                        height: 1334,
                        tabBar: [],
                        is_tabbar: 0,
                        sharetitle: "",
                        sharepic: "",
                        appid: "",
                        path: "",
                        search_id: "",
                        uid: 0
                    };
                },
                components: {
                    gracePage: function() {
                        c.e("graceUI/components/gracePage").then(function() {
                            return resolve(c("1021"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceSearch: function() {
                        c.e("graceUI/components/graceSearch").then(function() {
                            return resolve(c("de21"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceSwiper: function() {
                        c.e("graceUI/components/graceSwiper").then(function() {
                            return resolve(c("9fc3"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    addMiniTip: function() {
                        Promise.all([ c.e("common/vendor"), c.e("components/add-mini-tip/add-mini-tip") ]).then(function() {
                            return resolve(c("00a6"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceDialog: function() {
                        c.e("graceUI/components/graceDialog").then(function() {
                            return resolve(c("f85d"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceCoupons: function() {
                        c.e("graceUI/components/graceCoupons").then(function() {
                            return resolve(c("6546"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceLoading: function() {
                        c.e("graceUI/components/graceLoading").then(function() {
                            return resolve(c("1d04"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceFullLoading: function() {
                        c.e("graceUI/components/graceFullLoading").then(function() {
                            return resolve(c("3be5"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceImg: function() {
                        c.e("graceUI/components/graceImg").then(function() {
                            return resolve(c("1d6e"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceEmptyNew: function() {
                        c.e("graceUI/components/graceEmptyNew").then(function() {
                            return resolve(c("f8df"));
                        }.bind(null, c)).catch(c.oe);
                    }
                },
                props: {},
                onReady: function() {
                    r.getSystemInfo({
                        success: function(e) {
                            e.windowHeight;
                        }
                    });
                },
                onShow: function() {
                    var t = this;
                    return o(n.default.mark(function e() {
                        return n.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, t.$onLaunched;

                              case 2:
                                t.user_info(), t.loadtasknum();

                              case 4:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onLoad: function(e) {
                    var a = this;
                    return o(n.default.mark(function e() {
                        var t;
                        return n.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, a.$onLaunched;

                              case 2:
                                (t = a).setting = r.getStorageSync("setting"), t.tabBar = r.getStorageSync("tabbar"), 
                                t.userinfo = r.getStorageSync("userinfo"), r.hideLoading(), wx.createInterstitialAd && ((i = wx.createInterstitialAd({
                                    adUnitId: r.getStorageSync("setting").ad_cp_id
                                })).onLoad(function() {}), i.onError(function(e) {
                                    console.log("onError event emit", e);
                                }), i.onClose(function() {}), i && i.show().catch(function(e) {
                                    console.log("onError event emit", e);
                                })), a.module_name = d.globalData.module_name, a.load_goods(), a.user_info(), a.jifendaohang(), 
                                a.loadtasknum();

                              case 15:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onPullDownRefresh: function() {
                    this.page = 1, this.loadingType = 0, this.youlikes = [], this.user_info(), this.loadtasknum(), 
                    this.load_goods(), this.jifendaohang();
                },
                onReachBottom: function() {
                    1 != this.loadingType && 2 != this.loadingType && this.load_goods();
                }
            }, "onShow", function() {
                var a = this;
                return o(n.default.mark(function e() {
                    var t;
                    return n.default.wrap(function(e) {
                        for (;;) switch (e.prev = e.next) {
                          case 0:
                            for (a.tabBar = r.getStorageSync("tabbar"), t = 0; t < a.tabBar.list.length; t++) -1 != a.tabBar.list[t].url.indexOf("shop/index") && (a.pageKey = t);
                            i && i.show().catch(function(e) {
                                console.error(e);
                            }), r.hideLoading();

                          case 5:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))();
            }), t(a, "onShareAppMessage", function() {
                var e = "pages/shop/index?uid=" + r.getStorageSync("userinfo").user_id;
                return {
                    title: this.sharetitle,
                    imageUrl: this.sharepic,
                    path: e
                };
            }), t(a, "onHide", function() {}), t(a, "onUnload", function() {}), t(a, "methods", {
                change: function(e) {
                    var t = this, a = this.tabBar.list[e];
                    if (this.pageKey = e, r.setStorageSync("pageKey", e), 1 == a.adtype) {
                        if (1 == a.appid_type && r.getStorageSync("mtwm_url")) return void r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtwm_url")
                        });
                        if (1 == a.appid_type && !r.getStorageSync("mtwm_url")) return t.appid_type = 1, 
                        void t.meituan_urlFun();
                        if (2 == a.appid_type && r.getStorageSync("mtsc_url")) return void r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtsc_url")
                        });
                        if (2 == a.appid_type && !r.getStorageSync("mtsc_url")) return t.appid_type = 2, 
                        void t.meituan_urlFun();
                        if (3 == a.appid_type && r.getStorageSync("elmwm_url")) return r.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: r.getStorageSync("elmwm_url")
                        }), t.updatepid(), void console.log(r.getStorageSync("elmwm_url"));
                        if (3 == a.appid_type && !r.getStorageSync("elmwm_url")) return t.appid_type = 3, 
                        void t.gettaobaoauth();
                        if (4 == a.appid_type && r.getStorageSync("elmsc_url")) return r.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: r.getStorageSync("elmsc_url")
                        }), t.updatepid(), void console.log(r.getStorageSync("elmsc_url"));
                        if (4 == a.appid_type && !r.getStorageSync("elmsc_url")) return console.log("ccc"), 
                        t.appid_type = 4, void t.gettaobaoauth();
                        if (0 == a.appid_type) return void r.navigateToMiniProgram({
                            appId: a.appid,
                            path: a.path
                        });
                    }
                    if (5 != a.adtype) if (4 != a.adtype) 2 != a.adtype && 3 != a.adtype || (t = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "ad_kefubind"
                    }), r.request({
                        url: t,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            adtype: "ad",
                            adid: a.adid,
                            openid: r.getStorageSync("openid")
                        },
                        success: function(e) {}
                    }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.adid, 
                    this.contact_title = a.title, this.contact_title_text = a.title_text, this.contact_title_desc = a.title_desc, 
                    this.contact_thumb = r.getStorageSync("setting").dianwo, this.showDialog3()); else {
                        r.setStorageSync("index_nav", a.url);
                        var n = getCurrentPages();
                        n.reverse();
                        for (var o = a.url.replace("../", ""), i = 0; i < n.length; i++) if (-1 != n[i].route.indexOf(o)) return void r.navigateBack({
                            delta: i
                        });
                        if (-1 == a.url.indexOf("../index/") && -1 == a.url.indexOf("../meituangroup/") && -1 == a.url.indexOf("../user/") && -1 == a.url.indexOf("../movie/") && -1 == a.url.indexOf("../shop/") && -1 == a.url.indexOf("../kefu/") && -1 == a.url.indexOf("../elm/") && -1 == a.url.indexOf("../meituan/") && -1 == a.url.indexOf("../mall/")) return -1 != a.url.indexOf("../../pages/index/") || -1 != a.url.indexOf("../../pages/user/") || -1 != a.url.indexOf("../../pages/kefu/") ? (o = a.url.replace("../../pages/", "../"), 
                        void r.navigateTo({
                            url: o
                        })) : -1 != a.url.indexOf("../../pages/meituan/") || -1 != a.url.indexOf("../../pages/elm/") || -1 != a.url.indexOf("../../pages/eat/") ? (o = a.url.replace("../../pages/", "../../pagesA/pages/"), 
                        void r.navigateTo({
                            url: o
                        })) : -1 != a.url.indexOf("../../pagesA/pages/movie/") || -1 != a.url.indexOf("../../pagesA/pages/shop/") || -1 != a.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (o = a.url.replace("../../pagesA/pages/", "../"), 
                        void r.navigateTo({
                            url: o
                        })) : -1 == a.url.indexOf("../../pagesA/pages/movieA/") && -1 == a.url.indexOf("../../pagesA/pages/shopA/") && -1 == a.url.indexOf("../../pagesA/pages/meituan/") && -1 == a.url.indexOf("../../pagesA/pages/elm/") && -1 == a.url.indexOf("../../pagesA/pages/eat/") && -1 == a.url.indexOf("../../pagesA/pages/userA/") && (-1 != a.url.indexOf("../meituan/") || -1 != a.url.indexOf("../elm/") || -1 != a.url.indexOf("../eat/")) ? (o = a.url.replace("../", "../../pagesA/pages/"), 
                        void r.navigateTo({
                            url: o
                        })) : void r.navigateTo({
                            url: a.url
                        });
                        r.navigateTo({
                            url: a.url
                        });
                    } else r.navigateTo({
                        url: "../kefu/webview?return_url=" + encodeURIComponent(a.url)
                    });
                },
                fatherHeight: function(e) {
                    this.height = e;
                },
                openShopad: function(e) {
                    r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile ? (e = e.currentTarget.dataset, 
                    this.api_url = e.item_id, this.openad(e)) : this.showDialog2();
                },
                openad: function(a) {
                    var e, n = this;
                    1 == a.is_warm && a.tplid ? (e = d.globalData.util.url("entry/wxapp/subscribemessage2", {
                        m: d.globalData.module_name
                    }), r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            id: a.item_id,
                            type: 2
                        },
                        success: function(e) {
                            var t;
                            r.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum), r.getStorageSync("subscribemessage" + a.item_id) < a.tplid_oneday_num ? (t = new Array(), 
                            t = a.tplid.split(","), wx.requestSubscribeMessage({
                                tmplIds: t,
                                success: function(e) {
                                    "reject" == e[t[0]] || (e = d.globalData.util.url("entry/wxapp/subscribemessage2", {
                                        m: d.globalData.module_name
                                    }), r.request({
                                        url: e,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: r.getStorageSync("openid"),
                                            id: a.item_id,
                                            type: 1
                                        },
                                        success: function(e) {
                                            r.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum);
                                        }
                                    })), n.openad2(a);
                                },
                                fail: function(e) {
                                    e.openad2(a);
                                }
                            })) : n.openad2(a);
                        }
                    })) : n.openad2(a);
                },
                openad2: function(t) {
                    r.showLoading({
                        title: "加载中...",
                        mask: !1
                    });
                    var e, a, n = this;
                    1 == t.adtype || 14 == t.adtype || 15 == t.adtype ? 0 < t.appid_type2 || 14 == t.adtype || 15 == t.adtype ? (e = d.globalData.util.url("entry/wxapp/index_jump", {
                        m: d.globalData.module_name
                    }), r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            adid: t.item_id
                        },
                        success: function(e) {
                            1 == e.data.jump_type ? r.navigateToMiniProgram({
                                appId: e.data.jump_appid,
                                path: e.data.jump_path
                            }) : 2 == e.data.jump_type ? (n.contact_type = "ad_new", n.contact_id = t.item_id, 
                            n.contact_title = e.data.title, n.contact_title_text = e.data.title_text, n.contact_title_desc = e.data.title_desc, 
                            n.contact_thumb = r.getStorageSync("setting").dianwo, n.showDialog3()) : r.showToast({
                                title: e.data.msg,
                                icon: "none"
                            }), r.hideLoading();
                        }
                    })) : (r.navigateToMiniProgram({
                        appId: t.appid,
                        path: t.path
                    }), r.hideLoading()) : 5 == t.adtype ? (r.navigateTo({
                        url: "../kefu/webview?return_url=" + encodeURIComponent(t.url) + "&t=" + Date.parse(new Date())
                    }), r.hideLoading()) : 10 == t.adtype ? (this.$refs.addmini.showAddMiniProgramTips = 1, 
                    r.hideLoading()) : 11 == t.adtype || 7 == t.adtype ? r.hideLoading() : 4 == t.adtype ? (r.setStorageSync("index_nav", t.url), 
                    -1 != t.url.indexOf("../index/") || -1 != t.url.indexOf("../meituangroup/") || -1 != t.url.indexOf("../user/") || -1 != t.url.indexOf("../movie/") || -1 != t.url.indexOf("../shop/") || -1 != t.url.indexOf("../kefu/") || -1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../mall/") ? r.navigateTo({
                        url: t.url
                    }) : -1 != t.url.indexOf("../../../pages/index/") || -1 != t.url.indexOf("../../../pages/user/") || -1 != t.url.indexOf("../../../pages/kefu/") ? (a = t.url.replace("../../../pages/", "../"), 
                    r.navigateTo({
                        url: a
                    })) : -1 != t.url.indexOf("../../../pages/meituan/") || -1 != t.url.indexOf("../../../pages/elm/") || -1 != t.url.indexOf("../../../pages/eat/") ? (a = t.url.replace("../../../pages/", "../../pagesA/pages/"), 
                    r.navigateTo({
                        url: a
                    })) : -1 != t.url.indexOf("../../pagesA/pages/movie/") || -1 != t.url.indexOf("../../pagesA/pages/shop/") || -1 != t.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (a = t.url.replace("../../pagesA/pages/", "../"), 
                    r.navigateTo({
                        url: a
                    })) : -1 == t.url.indexOf("../../pagesA/pages/movieA/") && -1 == t.url.indexOf("../../pagesA/pages/shopA/") && -1 == t.url.indexOf("../../pagesA/pages/meituan/") && -1 == t.url.indexOf("../../pagesA/pages/elm/") && -1 == t.url.indexOf("../../pagesA/pages/eat/") && -1 == t.url.indexOf("../../pagesA/pages/userA/") && (-1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../eat/")) ? (a = t.url.replace("../", "../../pagesA/pages/"), 
                    r.navigateTo({
                        url: a
                    })) : r.navigateTo({
                        url: t.url
                    }), r.hideLoading(), r.hideLoading()) : 2 == t.adtype || 3 == t.adtype || 9 == t.adtype ? (e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "ad_kefubind"
                    }), r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            adtype: "ad_new",
                            adid: t.item_id,
                            openid: r.getStorageSync("openid")
                        },
                        success: function(e) {}
                    }), this.contact_title_desc = "", this.contact_type = "ad_new", this.contact_id = t.item_id, 
                    this.contact_title = t.title, this.contact_title_text = t.title_text, this.contact_title_desc = t.title_desc, 
                    this.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), this.showDialog3()) : 8 == t.adtype ? 1 == t.mall_adtype ? r.navigateTo({
                        url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                    }) : 2 == t.mall_adtype && this.loadMallapigoodslist(t) : 12 == t.adtype ? (r.previewImage({
                        urls: [ t.open_thumb ]
                    }), r.hideLoading()) : 13 == t.adtype && this.getCoupon(t);
                },
                loadMallapigoodslist: function(t) {
                    this.loadStatus = "loading";
                    var e = d.globalData.util.url("entry/wxapp/mallapigoodslist", {
                        m: d.globalData.module_name
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            id: t.item_id,
                            lon: r.getStorageSync("lon"),
                            lat: r.getStorageSync("lat")
                        },
                        success: function(e) {
                            200 == e.data.code && (e.data.appid ? r.navigateToMiniProgram({
                                appId: e.data.appid,
                                path: e.data.path
                            }) : r.navigateTo({
                                url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                            })), r.hideLoading();
                        }
                    });
                },
                getCoupon: function(t) {
                    var a = this;
                    if (r.getStorageSync("path" + t.item_id)) return r.getStorageSync("appid" + t.item_id) ? r.navigateToMiniProgram({
                        appId: r.getStorageSync("appid" + t.item_id),
                        path: r.getStorageSync("path" + t.item_id)
                    }) : r.setClipboardData({
                        data: r.getStorageSync("path" + t.item_id),
                        success: function(e) {
                            r.showToast({
                                title: "内容已复制",
                                icon: "success"
                            });
                        }
                    }), void r.hideLoading();
                    var e = d.globalData.util.url("entry/wxapp/mall_goods_getcoupon", {
                        m: d.globalData.module_name
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            goodsid: t.goodsid,
                            pingtai: t.mall_type,
                            goodssign: t.goodssign,
                            search_id: a.search_id,
                            quan_url: t.quan_url,
                            uid: a.uid,
                            id: t.item_id
                        },
                        success: function(e) {
                            200 == e.data.code && ("tb" == t.mall_type ? (a.path = e.data.tkl, r.setStorageSync("path" + t.item_id, e.data.tkl), 
                            r.setStorageSync("pid_time", e.data.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                            r.setClipboardData({
                                data: e.data.tkl,
                                success: function(e) {
                                    r.showToast({
                                        title: "内容已复制",
                                        icon: "success"
                                    });
                                }
                            })) : (a.appid = e.data.appid, a.path = e.data.path, r.setStorageSync("appid" + t.item_id, e.data.appid), 
                            r.setStorageSync("path" + t.item_id, e.data.path), r.navigateToMiniProgram({
                                appId: e.data.appid,
                                path: e.data.path
                            })), r.hideLoading());
                        }
                    });
                },
                meituan_urlFun: function() {
                    var e, t = this;
                    1 == t.appid_type && r.getStorageSync("mtwm_url") ? r.navigateToMiniProgram({
                        appId: "wxde8ac0a21135c07d",
                        path: r.getStorageSync("mtwm_url")
                    }) : 2 == t.appid_type && r.getStorageSync("mtsc_url") ? r.navigateToMiniProgram({
                        appId: "wxde8ac0a21135c07d",
                        path: r.getStorageSync("mtsc_url")
                    }) : (e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "qrcode_mtelm"
                    }), r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            appid_type: t.appid_type
                        },
                        success: function(e) {
                            e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            console.log("qrcode_mtelm:" + e), 1 == t.appid_type && (r.setStorageSync("mtwm_url", e.mtwm_url), 
                            r.setStorageSync("mtwm_h5", e.mtwm_h5), r.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: e.mtwm_url
                            })), 2 == t.appid_type && (r.setStorageSync("mtsc_url", e.mtsc_url), r.setStorageSync("mtsc_h5", e.mtsc_h5), 
                            r.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: e.mtsc_url
                            }));
                        }
                    }));
                },
                closeAlert: function() {
                    this.closeDialog2();
                },
                getWxCode: function() {
                    var t = this;
                    wx.login({
                        success: function(e) {
                            t.wxCode = e.code;
                        }
                    });
                },
                updatepid: function() {
                    var e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "updatepid"
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid")
                        },
                        success: function(e) {}
                    });
                },
                login: function(t) {
                    var a = this;
                    this.closeDialog2(), r.getSetting({
                        success: function(e) {
                            e.authSetting["scope.userInfo"] ? r.getUserInfo({
                                success: function(e) {
                                    a.userAuth(t, e.userInfo, "login");
                                }
                            }) : a.userAuth(t, null, "login");
                        }
                    });
                },
                gotask: function(e) {
                    r.navigateTo({
                        url: "task"
                    });
                },
                change1: function(e) {
                    wx.reLaunch({
                        url: "../../pagesA/pages/userA/change"
                    });
                },
                getUserProfile: function() {
                    var a = this;
                    wx.getUserProfile({
                        desc: "请完善会员资料",
                        success: function(e) {
                            console.log(e.userInfo);
                            var t = d.globalData.util.url("entry/wxapp/userinfo2", {
                                m: d.globalData.module_name
                            }), e = {
                                avatarUrl: e.userInfo.avatarUrl,
                                nickName: e.userInfo.nickName,
                                openid: r.getStorageSync("openid")
                            };
                            r.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: e,
                                success: function(e) {
                                    1 == e.data.status && (r.setStorageSync("userinfo", e.data.data.userinfo), a.userinfo = e.data.data.userinfo, 
                                    a.closeDialog2(), r.showToast({
                                        title: "登录成功",
                                        icon: "none"
                                    }));
                                }
                            });
                        }
                    });
                },
                userAuth: function(a, e, n) {
                    var o = this;
                    "getUserInfo:ok" == a.detail.errMsg ? wx.login({
                        success: function(e) {
                            var t = d.globalData.util.url("entry/wxapp/api", {
                                m: d.globalData.module_name,
                                o: "userinfo"
                            }), e = {
                                code: e.code,
                                encryptedData: a.detail.encryptedData,
                                iv: a.detail.iv,
                                openid: r.getStorageSync("openid"),
                                invite_uid: wx.getStorageSync("invite_uid")
                            };
                            r.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: e,
                                success: function(e) {
                                    1 == e.data.status ? (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                    e = JSON.parse(e), r.setStorageSync("userinfo", e.userinfo), o.userinfo = e.userinfo, 
                                    "login" == n && (o.closeDialog2(), r.showToast({
                                        title: "登录成功",
                                        icon: "none"
                                    }))) : r.showToast({
                                        title: "您取消了请求",
                                        icon: "none"
                                    });
                                }
                            });
                        }
                    }) : r.showToast({
                        title: "获取用户信息失败",
                        icon: "none"
                    });
                },
                showDialog1: function() {
                    this.$refs.showAlert_taobaoauth.open();
                },
                closeDialog1: function() {
                    this.$refs.showAlert_taobaoauth.hide();
                },
                showDialog2: function() {
                    this.$refs.showAlert_login.open();
                },
                closeDialog2: function() {
                    this.$refs.showAlert_login.hide();
                },
                showDialog3: function() {
                    this.$refs.showAlert.open();
                },
                closeDialog3: function() {
                    this.$refs.showAlert.hide();
                },
                userlogin: function() {
                    !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                },
                taobaoauth: function() {
                    var t = this;
                    r.setClipboardData({
                        data: this.qudao_tkl,
                        success: function(e) {
                            r.showToast({
                                title: "复制成功，请打开淘宝授权",
                                icon: "none"
                            }), t.is_qudao_tkl = 1;
                        }
                    });
                },
                retaobaoauth: function() {
                    this.is_qudao_tkl = 0, this.qudao_tkl = "", this.gettaobaoauth();
                },
                notaobaoauth: function() {
                    3 == this.appid_type && r.navigateToMiniProgram({
                        appId: "wxece3a9a4c82f58c9",
                        path: r.getStorageSync("setting").default_elmwmpath
                    }), 4 == this.appid_type && r.navigateToMiniProgram({
                        appId: "wxece3a9a4c82f58c9",
                        path: r.getStorageSync("setting").default_elmscpath
                    });
                },
                taobaoauth_done: function() {
                    var a = this, e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "taobaoauth_done"
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            appid_type: a.appid_type
                        },
                        success: function(e) {
                            var t;
                            0 != e.data.status ? (t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                            t = JSON.parse(t), 1 == e.data.status ? (3 == a.appid_type && (r.setStorageSync("elmwm_url", t.elmwm_url), 
                            r.setStorageSync("elmwmqrcode", t.elmwm_qrcode), r.setStorageSync("elmwm_h5", t.elmwm_h5), 
                            r.setStorageSync("pid_time", +t.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                            r.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: t.elmwm_url
                            })), 4 == a.appid_type && (r.setStorageSync("elmsc_url", t.elmsc_url), r.setStorageSync("elmscqrcode", t.elmsc_qrcode), 
                            r.setStorageSync("elmsc_h5", t.elmsc_h5), r.setStorageSync("pid_time", +t.pid_time), 
                            r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                            r.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: t.elmsc_url
                            }))) : r.showModal({
                                title: "提示",
                                content: "未获取到您的授权信息，请重试！",
                                showCancel: !1,
                                success: function(e) {
                                    e.confirm || e.cancel;
                                }
                            })) : r.showModal({
                                title: "提示",
                                content: "未获取到您的授权信息，请重试！",
                                showCancel: !1,
                                success: function(e) {
                                    e.confirm || e.cancel;
                                }
                            });
                        }
                    });
                },
                gettaobaoauth: function() {
                    var t = this, a = this, e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "gettaobaoauth"
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            appid_type: a.appid_type
                        },
                        success: function(e) {
                            1 == e.data.status ? (a.showDialog1(), a.qudao_tkl = e.data.data) : 0 == e.data.status ? r.showToast({
                                title: "获取授权信息出错",
                                icon: "none"
                            }) : 2 == e.data.status && (e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                            e = JSON.parse(e), console.log("gettaobaoauth:" + e), 3 == t.appid_type && (r.setStorageSync("elmwm_url", e.elmwm_url), 
                            r.setStorageSync("elmwmqrcode", e.elmwm_qrcode), r.setStorageSync("elmwm_h5", e.elmwm_h5), 
                            r.setStorageSync("pid_time", +e.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                            r.setStorageSync("is_qudao", e.is_qudao), r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: e.elmwm_url
                            }), console.log(r.getStorageSync("elmwm_url"))), 4 == t.appid_type && (r.setStorageSync("elmsc_url", e.elmsc_url), 
                            r.setStorageSync("elmscqrcode", e.elmsc_qrcode), r.setStorageSync("elmsc_h5", e.elmsc_h5), 
                            r.setStorageSync("pid_time", +e.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                            r.setStorageSync("is_qudao", e.is_qudao), r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: e.elmsc_url
                            }), console.log(r.getStorageSync("elmsc_url"))));
                        }
                    });
                },
                user_info: function() {
                    var t = this, e = d.globalData.util.url("entry/wxapp/userinfonew", {
                        m: d.globalData.module_name
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid")
                        },
                        success: function(e) {
                            r.setStorageSync("userinfo", e.data.data), t.userinfo = e.data.data;
                        }
                    });
                },
                loadtasknum: function() {
                    var a = this, e = d.globalData.util.url("entry/wxapp/tasknum2", {
                        m: d.globalData.module_name
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid")
                        },
                        success: function(e) {
                            var t = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                            console.log(t), a.tasknum = t.tasknum, a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, 
                            r.stopPullDownRefresh();
                        }
                    });
                },
                openProductInfo: function(e) {
                    r.navigateTo({
                        url: "../../pagesA/pages/shopA/detail?item_id=" + e.currentTarget.dataset.productid
                    });
                },
                load_goods: function() {
                    var t = this, e = d.globalData.util.url("entry/wxapp/api", {
                        m: d.globalData.module_name,
                        o: "goods"
                    });
                    this.loadingType = 1, r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            page: t.page,
                            pagesize: 8
                        },
                        success: function(e) {
                            e = d.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            0 < e.total && (t.youlikes = t.youlikes.concat(e.data.items)), t.page > e.total ? 0 == t.youlikes.length ? (t.youlikes = [], 
                            t.loadingType = 4) : t.loadingType = 2 : t.page == e.total ? t.loadingType = 2 : (t.page = t.page + 1, 
                            t.loadingType = 0, t.page = t.page);
                        }
                    });
                },
                jifendaohang: function() {
                    var t = this, e = d.globalData.util.url("entry/wxapp/adlist", {
                        m: d.globalData.module_name
                    });
                    r.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: r.getStorageSync("openid"),
                            type: 51,
                            system_type: r.getStorageSync("systemtype")
                        },
                        success: function(e) {
                            t.navList = e.data.adlist;
                        }
                    });
                },
                getRedMoney: function() {
                    this.isGreAni = !1;
                    var e = r.createAnimation({
                        duration: 2e3,
                        timingFunction: "ease"
                    });
                    (this.animation = e).rotateY(1080).step(), this.animationData = e.export();
                },
                bindReceive: function() {
                    this.selfInformation(), this.isNewRed = !1;
                },
                selfInformation: function() {
                    r.getStorageSync("token");
                },
                goLuckDetail: function(e) {
                    var t = e.currentTarget.dataset.index, a = this.lvList[t].relation_id, n = this.lvList[t].member.id, o = this.lvList[t].task_condition, e = this.selfInfor.id, t = this.onlyIndex;
                    r.navigateTo({
                        url: "/pages/luckydrawdetails/luckydrawdetails?luckydetail=" + a + "&only=+ " + t + "&luckydrawHide=2&fenxiang_id=" + a + "&fenxiang_condition=" + o + "&fenxiang_memberid=" + n + "&userid=" + e
                    });
                },
                taskProgressFun: function() {},
                bindOpenScroll: function() {
                    var e = this;
                    this.taskClose = !this.taskClose, setTimeout(function() {
                        e.taskClose = !1;
                    }, 8e3);
                },
                bindSuccess: function() {},
                bindScrollClose: function() {
                    this.taskClose = !1;
                },
                scroll: function() {},
                koiplazaCurrent: function() {},
                bScroll: function() {},
                swiperCurrent: function() {}
            }), a);
            l.default = a;
        }).call(this, c("543d").default);
    },
    "7c30": function(e, t, a) {
        var n = a("bcd5");
        a.n(n).a;
    },
    8805: function(e, t, a) {
        a.r(t);
        var n, o = a("2e8e"), i = a.n(o);
        for (n in o) "default" !== n && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(n);
        t.default = i.a;
    },
    bcd5: function(e, t, a) {},
    dd02: function(e, t, a) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            a("0cda"), t(a("66fd")), e(t(a("25d5")).default);
        }).call(this, a("543d").createPage);
    }
}, [ [ "dd02", "common/runtime", "common/vendor" ] ] ]);